package edu.mju.scenic.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author CBL
 * @since 2020-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("scenic_spot")
@ApiModel(value="Spot对象", description="景点对象")
public class Spot implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "景点名")
    private String title;

    @ApiModelProperty(value = "地址")
    private String addr;

    @ApiModelProperty(value = "门票")
    private BigDecimal price;

    @ApiModelProperty(value = "游玩时间")
    private String playTime;

    @ApiModelProperty(value = "开放时间-结束时间")
    private String openTime;

    @ApiModelProperty(value = "历史文化")
    private String culture;

    @ApiModelProperty(value = "历史故事")
    private String history;

    @ApiModelProperty(value = "简介")
    private String descript;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
